<?php
class Tb_Clubs_Tours  extends Models {
    private $_name = "clubs_tours";

    /*
     * Insert
     */
    public function insert($ids) {
        $fields = 'id_club, id_tour';
        $values = '"' . mysql_escape_string($ids['id_club']) . '", 
                   "' . mysql_escape_string($ids['id_tour']) . '"';

        $query = 'INSERT IGNORE INTO ' . $this->_name . '(' . $fields . ')
                  VALUES(' . $values . ')';
        $this->query($query);
    }
    
}